import { AppRoutes } from "./App/route";
import { LoginRoutes } from "./Logins/route";

// 全局路由配置 

export const routes = [
    { path: "/", redirect: "/guide" },
    { path: "/guide", component: "@/pages/Guide/Guide" },
    ...LoginRoutes,
    ...AppRoutes,
    { path:'/demo', component: "@/pages/Demo/Demo" },
    { path:'/search', component: "@/pages/Search/Search" },
    { path:'/submit', component: "@/pages/Submit/Submit" },
    { path:'/detail/:id', component: "@/pages/Detail/Detail" }, 
    { path:'/mylikes', component: "@/pages/My/MyLike" },
    
    { path:'/503', component: "@/pages/Errors/BadServe" },
    { path: "/404", component: "@/pages/Errors/NotFound" },

    { path: '/*', redirect:'/404' },
]